package com.woniuxy.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.util.Date;


/**
 * 退药表 对应数据库 t_dw
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class Withdrawal {
    private Integer id;     //退药表Id
    private String dwNo;    //退药编号
    private Integer dwCaseId;    //病人Id
    private String patientName;     //病人姓名
    private Integer dwWorkerId;  //开药医生Id
    private String workerName;   //开药医生姓名
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date dwDate;        //开单时间
    private String dwStatus;    //开药状态 1：申请 1：退药成功 2：驳回
    private String dwCause;     //退药原因
    private BigDecimal purse;//住院病人钱包
    private BigDecimal recharge;//总充值金额

}
